Missing NULL-check in XI2's implementation for get_window()
authorMario Sanchez Prada <mario.prada@samsung.com>
Thu, 16 May 2013 14:34:05 +0000 (15:34 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 20 May 2013 01:21:41 +0000 (21:21 -0400)
commit201410de60405148a8ae1e0bad568a9879fc06a8
tree55decd8fac8bf22dfc9fc384dbc2140c2cc30c74
parent678ccd6fc1d8872d9084d3bbb91d277072ba5310
Missing NULL-check in XI2's implementation for get_window()

Add missing check in gdk_x11_device_manager_xi2_get_window(), returning
NULL if no valid XI2Event* has been found. Calling code seems to be
prepared to handle NULLs coming from this function, so it should be
safe enough (e.g. check gdk_event_source_get_filter_window()).

https://bugzilla.gnome.org/show_bug.cgi?id=700465
gdk/x11/gdkdevicemanager-xi2.c